<?php
$links = LinkGen::getInstance(LinkGen::NEWS)->collectionLinks($news);
?>
<?php use_helper('DateFormat') ?><?php if(isset($news) && $news->count()): ?><?php slot('news') ?>
              <?php foreach($news as $item): ?><tr>
                <td class="header" valign="top"><h2><a href="<?php echo isset($links[$item->getId()]) ? $links[$item->getId()] : '#' ?>"><?php echo $item->getName(); ?></a></h2>
                  <p><?php echo $item->getDescription() ?></p>
                </td>
                <td valign="middle" class="news-date"><big><?php echo getDay($item->getCreatedAt()) ?></big> <small><?php echo __(getMonth($item->getCreatedAt())) ?></small> </td>
              </tr>
              <?php endforeach; ?><?php end_slot(); ?><?php endif; ?>